#include<stdio.h>
#include"tree.h"

int main(void)
{
	struct Node * tree = NULL;
//=========================================================================
	#if 0      //插入测试
	int arr[] = {1,2,3,7,6,5,9,8,4};
	for (int i = 0; i < sizeof(arr) / sizeof(*arr); i++)
		tree_insert(&tree, arr[i]);
	#endif    
//=========================================================================
	#if 0        //查找测试
	int tmp = 12;
	int * value = NULL;
	value = tree_find(tree,tmp);
	if(value == NULL)
		printf("Can not find %d\n",tmp);
	else
		printf("find value = %d\n",*value);
	#endif
//=========================================================================
	return 0;
}